package login

class User {

    Long id
    Long version
    String email
    String password
   
    String toString()
            { "$email" }
    
    static constraints = {
        email(email:true, blank: false)
        password (blank: false, nullable: false)
    }
    
    def getName() {
        return email
    }
 
}